package com.cskaoyan.common.util;

/**
 * @Description: TODO
 * @Author: GaoJia
 * @Date: 2021/10/19 12:50
 */
public class StringUtils {

    public StringUtils() {
    }

    public static boolean isEmpty(String str) {
        return str == null || str.length() == 0;
    }

    public static boolean isNotEmpty(String str) {
        return !isEmpty(str);
    }

    public static String[] string2StringArrays(String s) {
        String replace = s.replace("[", "").replace("]", "");
        String[] split = replace.split(",");
        if (replace.isEmpty()){
            return new String[0];
        }
        return split;
    }

}
